package cn.iocoder.yudao.module.eval.controller.admin.evaluator.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Schema(description = "管理后台 - 考评员资质新增/修改 Request VO")
@Data
public class EvalEvaluatorQualificationSaveReqVO {

    @Schema(description = "编号", example = "1")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "可评价职业代码列表", requiredMode = Schema.RequiredMode.REQUIRED, example = "001,002")
    @NotEmpty(message = "可评价职业代码不能为空")
    private String professionCodes;

    @Schema(description = "可评价技能等级", example = "三级,四级,五级")
    private String skillLevels;

    @Schema(description = "证书编号", example = "CERT001")
    private String certificateNumber;

    @Schema(description = "发证机构", requiredMode = Schema.RequiredMode.REQUIRED, example = "职业技能鉴定中心")
    @NotEmpty(message = "发证机构不能为空")
    private String certificateIssuer;

    @Schema(description = "发证日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "发证日期不能为空")
    private LocalDate certificateDate;

    @Schema(description = "有效期至", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "有效期不能为空")
    private LocalDate validUntil;

    @Schema(description = "专业领域", example = "电气安装,设备维修")
    private String specialties;

    @Schema(description = "最大工作负荷", example = "50")
    private Integer maxWorkload;

    @Schema(description = "资质状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "资质状态不能为空")
    private Integer qualificationStatus;

} 